<extend name="Base/form" />

<block name="title"><if condition="CONTROLLER_NAME=='Order'">订单管理<else/>订单回收站</if></block>
<block name="head"><script type="text/javascript" src="__JS__/Order2.js"></script>
<link rel="stylesheet" type="text/css" href="__CSS__/Order.css"></block>

<block name="nav">
<li><a href="{:U(CONTROLLER_NAME.'/index')}">列表</a></li>
<if condition="CONTROLLER_NAME=='Order'">
<li><a href="{:U(CONTROLLER_NAME.'/add')}">添加</a></li>
<li><a href="{:U(CONTROLLER_NAME.'/multi')}">批量修改物流</a></li>
</if>
<li class="current"><a href="{:U(CONTROLLER_NAME.'/update',array('id'=>I('get.id'),'from'=>I('get.from')))}">修改</a></li>
</block>

<block name="form">
<div id="form">
  <form method="post" action="">
    <input type="hidden" name="oid" value="{$One['oid']}">
    <input type="hidden" name="ip" value="{$One['ip']}">
    <input type="hidden" name="referrer" value="{$One['referrer']}">
    <input type="hidden" name="date" value="{$One['date']}">
    <dl>
      <dd>下单模板：<select name="tid" class="select">{$Template}</select> 只对模板中勾选的字段进行验证</dd>
      <dd>订购产品：<select name="pid" class="select">{$Product}</select></dd>
      <dd>成交单价：<input type="text" name="price" value="{$One['price']}" class="input-text"></dd>
      <dd>订购数量：<input type="text" name="count" value="{$One['count']}" class="input-text"></dd>
      <dd>姓　　名：<input type="text" name="name" value="{$One['name']}" class="input-text"></dd>
      <dd>联系电话：<input type="text" name="tel" value="{$One['tel']}" class="input-text"></dd>
      <dd>所在地区：<input type="text" name="province2" value="{$One['province']}" class="input-text text2">省<input type="text" name="city2" value="{$One['city']}" class="input-text text2">市<input type="text" name="county2" value="{$One['county']}" class="input-text text2">区/县</dd>
      <dd>街道地址：<input type="text" name="address" value="{$One['address']}" class="input-text"></dd>
      <dd>邮政编码：<input type="text" name="post" value="{$One['post']}" class="input-text"></dd>
      <dd class="textareadd"><span>备　　注：</span><textarea name="note" class="textarea">{$One['note']}</textarea></dd>
      <dd>电子邮箱：<input type="text" name="email" value="{$One['email']}" class="input-text"></dd>
      <dd>支付状态：<select name="pay" class="select"><foreach name="Pay" key="key" item="value"><option value="{$key}" <if condition="$key==$One['pay']">selected</if>>{$value}</option></foreach></select></dd>
      <dd>支付链接：支付宝 <a href="{$One['payUrl']['alipay']}" target="_blank">{$One['payUrl']['alipay']}</a></dd>
      <dd>　　　　　财付通 <a href="{$One['payUrl']['tenpay']}" target="_blank">{$One['payUrl']['tenpay']}</a></dd>
      <dd>　　　　　微信支付 <a href="{$One['payUrl']['wxpay']}" target="_blank">{$One['payUrl']['wxpay']}</a></dd>
      <dd>　　　　　云支付 <a href="{$One['payUrl']['yunpay']}" target="_blank">{$One['payUrl']['yunpay']}</a></dd>
      <dd>　　　　　可发送以上链接给客户进行网上支付</dd>
      <dd>订单状态：{$Ostate}</dd>
      <dd>物流公司：<select name="lid" class="select">{$Logistics}</select></dd>
      <dd>物流编号：<input type="text" name="logistics_id" value="{$One['logistics_id']}" class="input-text"></dd>
      <dd>发送邮件：<label><input type="radio" name="sendmail" value="0" checked>不发送</label> <label><input type="radio" name="sendmail" value="1">发送支付信息给客户</label> <label><input type="radio" name="sendmail" value="2">发送发货信息给客户</label></dd>
      <dd><input type="submit" value="确认修改" class="btn btn-primary radius"></dd>
    </dl>
  </form>
</div>
</block>